import Vue from 'vue'
import App from './App.vue'
// 引入路由
import router from './router'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// 引入api请求
import * as API from '@/api'

// 引入vuex仓库
import store from './store';

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$API = API
  },
  router,
  store
}).$mount('#app')
